/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package linkedlistsample;

/**
 *
 * @author parallels
 */
public class Node {
    
    private Object object;
    private Node next;
    
    public Node (Object o) {
        object = o;
        next = null;
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }
    
}
